﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Zoomtel.Entity;
using Zoomtel.Persist.BIZ.Models;
using Zoomtel.Web.Controllers;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace Zoomtel.Web.Areas.Pub.Controllers
{
    [Description("提现记录接口")]
    public class CashLogController : PubModuleController
    {
        Service.BIZ.CashLogService service;
        ILoginInfo loginInfo;
        public CashLogController(Service.BIZ.CashLogService _service, ILoginInfo _loginInfo)
        {
            service = _service;
            loginInfo = _loginInfo;
        }

        [Description("查询")]
        [HttpPost]
        //[AllowAnonymous]
        public Task<IResultModel> Query(CashLogQueryModel model)
        {
            model.AgentId = loginInfo.Uid;
            return service.Query(model);
        }



    }
}
